﻿using MiniFox.Infrastructure;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;

namespace Dispatcher.Core.Message.Models
{
    public class MessageModel
    {
        [Display(Name = "消息ID")]
        public string MessageId { get; set; }

        [Display(Name = "消息分组")]
        public string GroupName { get; set; }

        public string SenderID { get; set; }

        [Display(Name = "发送者")]
        public string SenderName { get; set; }

        public string ReceiverID { get; set; }

        [Display(Name = "接收人")]
        public string ReceiverName { get; set; }

        [Display(Name = "标题")]
        public string Title { get; set; }

        [Display(Name = "内容")]
        public string Body { get; set; }

        [Display(Name = "接收时间")]
        public DateTime SendTime { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "内容模板", ShortName = "内容模板")]
        public string TemplateName { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "发送数据")]
        public object Data { get; set; }
    }

}
